export default {
    namespaced:true,
    state:{
        isShow:true,
        _token:'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOiI2MDlkYzkxYjlhN2M3ZTJmMjQ1ZDM5ZjMiLCJpYXQiOjE2MjEwNjc2MDl9.k6dIUam8aRC_q-VwwG0GJKXKAVMrDcZ87A4LWKy8mZ8'
    },
    mutations:{
        setIsShow(state,arg){
            state.isShow =arg
        }
    },
    actions: {
        setIsShowAsync(context, arg) {
            setTimeout(() => {
                context.commit("setIsShow", arg);
            }, 500);
        },
    },
    getters: {
        getIsShow(state) {
            return state.isShow ? "显示" : "隐藏";
        },
    },
}